# -*- coding:utf-8 -*-

def triangles():
    ret = [1]
    while True:
        yield ret
        for i in range(1, len(ret)):
            ret[i] = pre[i] + pre[i - 1]
        ret.append(1)
        pre = ret[:]
	
f = triangles()
t = 0
for n in f:
	print n
	t = t+1
	if t == 10:
		break